package com.czz.manage.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassName: QuestionComment
 * @Author Czz
 * @Date 2020/2/14
 * @Time 16:41
 **/
@Data
@TableName(value = "edu_question_comment")
@Accessors(chain = true)
public class QuestionComment {
    @TableId(value = "comment_id",type = IdType.ID_WORKER_STR)
    private String commentId;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "question_id")
    private String questionId;

    @TableField(value = "comment_parent_id")
    private String parentId;

    @TableField(value = "comment_content")
    private String content;

    @TableField(value = "is_best")
    private Integer best;

    @TableField(value = "comment_like_count")
    private Integer likeCount;

    @TableField(value = "comment_reply_count")
    private Integer reply;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
}
